﻿// MT304




using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.Collections.Generic;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category3
{
  public class MT304 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagSequenceDefinition U0002;
    private static SwiftTagDefinition U0003;
    private static SwiftTagSubItemDefinition U0004;
    private static SwiftTagDefinition U0005;
    private static SwiftTagSubItemDefinition U0006;
    private static SwiftTagDefinition U0007;
    private static SwiftTagSubItemDefinition U0008;
    private static SwiftTagDefinition U000E;
    private static SwiftTagSubItemDefinition U000F;
    private static SwiftTagDefinition U0010;
    private static SwiftTagSubItemDefinition U0011;
    private static SwiftTagDefinition U0012;
    private static SwiftTagSubItemDefinition U0013;
    private static SwiftTagDefinition U0014;
    private static SwiftTagSubItemDefinition U0015;
    private static SwiftTagDefinition U0016;
    private static SwiftTagSubItemDefinition U0017;
    private static SwiftTagChoiceDefinition U0018;
    private static SwiftTagDefinition U0019;
    private static SwiftTagSubItemDefinition U001A;
    private static SwiftTagSubItemDefinition U001B;
    private static SwiftTagDefinition U001C;
    private static SwiftTagSubItemDefinition U001D;
    private static SwiftTagSubItemDefinition U001E;
    private static SwiftTagDefinition U001F;
    private static SwiftTagSubItemDefinition U007F;
    private static SwiftTagChoiceDefinition U0080;
    private static SwiftTagDefinition U0081;
    private static SwiftTagSubItemDefinition U0082;
    private static SwiftTagSubItemDefinition U0083;
    private static SwiftTagDefinition U0084;
    private static SwiftTagSubItemDefinition U0086;
    private static SwiftTagSubItemDefinition U0087;
    private static SwiftTagDefinition U0088;
    private static SwiftTagSubItemDefinition U0089;
    private static SwiftTagChoiceDefinition U008A;
    private static SwiftTagDefinition U008B;
    private static SwiftTagSubItemDefinition U008C;
    private static SwiftTagSubItemDefinition U008D;
    private static SwiftTagDefinition U008E;
    private static SwiftTagSubItemDefinition U008F;
    private static SwiftTagSubItemDefinition U0090;
    private static SwiftTagDefinition U0091;
    private static SwiftTagSubItemDefinition U0092;
    private static SwiftTagSequenceDefinition U0093;
    private static SwiftTagDefinition U0094;
    private static SwiftTagSubItemDefinition U0095;
    private static SwiftTagDefinition U0096;
    private static SwiftTagSubItemDefinition U0097;
    private static SwiftTagDefinition U0098;
    private static SwiftTagSubItemDefinition U0099;
    private static SwiftTagDefinition U009A;
    private static SwiftTagSubItemDefinition U009B;
    private static SwiftTagSequenceDefinition U009C;
    private static SwiftTagDefinition U009D;
    private static SwiftTagSubItemDefinition U009E;
    private static SwiftTagSubItemDefinition U009F;
    private static SwiftTagChoiceDefinition U0001U0002;
    private static SwiftTagDefinition U0002U0002;
    private static SwiftTagSubItemDefinition U0003U0002;
    private static SwiftTagSubItemDefinition U0004U0002;
    private static SwiftTagDefinition U0005U0002;
    private static SwiftTagSubItemDefinition U0006U0002;
    private static SwiftTagSubItemDefinition U0007U0002;
    private static SwiftTagDefinition U0008U0002;
    private static SwiftTagChoiceDefinition U000EU0002;
    private static SwiftTagDefinition U000FU0002;
    private static SwiftTagSubItemDefinition U0010U0002;
    private static SwiftTagSubItemDefinition U0011U0002;
    private static SwiftTagDefinition U0012U0002;
    private static SwiftTagSubItemDefinition U0013U0002;
    private static SwiftTagSubItemDefinition U0014U0002;
    private static SwiftTagDefinition U0015U0002;
    private static SwiftTagChoiceDefinition U0016U0002;
    private static SwiftTagDefinition U0017U0002;
    private static SwiftTagSubItemDefinition U0018U0002;
    private static SwiftTagSubItemDefinition U0019U0002;
    private static SwiftTagDefinition U001AU0002;
    private static SwiftTagSubItemDefinition U001BU0002;
    private static SwiftTagSubItemDefinition U001CU0002;
    private static SwiftTagDefinition U001DU0002;
    private static SwiftTagSequenceDefinition U001EU0002;
    private static SwiftTagDefinition U001FU0002;
    private static SwiftTagSubItemDefinition U007FU0002;
    private static SwiftTagSubItemDefinition U0080U0002;
    private static SwiftTagChoiceDefinition U0081U0002;
    private static SwiftTagDefinition U0082U0002;
    private static SwiftTagSubItemDefinition U0083U0002;
    private static SwiftTagSubItemDefinition U0084U0002;
    private static SwiftTagDefinition U0086U0002;
    private static SwiftTagSubItemDefinition U0087U0002;
    private static SwiftTagSubItemDefinition U0088U0002;
    private static SwiftTagDefinition U0089U0002;
    private static SwiftTagChoiceDefinition U008AU0002;
    private static SwiftTagDefinition U008BU0002;
    private static SwiftTagSubItemDefinition U008CU0002;
    private static SwiftTagSubItemDefinition U008DU0002;
    private static SwiftTagDefinition U008EU0002;
    private static SwiftTagSubItemDefinition U008FU0002;
    private static SwiftTagSubItemDefinition U0090U0002;
    private static SwiftTagDefinition U0091U0002;
    private static SwiftTagChoiceDefinition U0092U0002;
    private static SwiftTagDefinition U0093U0002;
    private static SwiftTagSubItemDefinition U0094U0002;
    private static SwiftTagSubItemDefinition U0095U0002;
    private static SwiftTagDefinition U0096U0002;
    private static SwiftTagSubItemDefinition U0097U0002;
    private static SwiftTagSubItemDefinition U0098U0002;
    private static SwiftTagDefinition U0099U0002;
    private static SwiftTagChoiceDefinition U009AU0002;
    private static SwiftTagDefinition U009BU0002;
    private static SwiftTagSubItemDefinition U009CU0002;
    private static SwiftTagSubItemDefinition U009DU0002;
    private static SwiftTagDefinition U009EU0002;
    private static SwiftTagSubItemDefinition U009FU0002;
    private static SwiftTagSubItemDefinition U0001U0003;
    private static SwiftTagDefinition U0002U0003;
    private static SwiftTagSubItemDefinition U0003U0003;
    private static SwiftTagSequenceDefinition U0004U0003;
    private static SwiftTagDefinition U0005U0003;
    private static SwiftTagSubItemDefinition U0006U0003;
    private static SwiftTagDefinition U0007U0003;
    private static SwiftTagSubItemDefinition U0008U0003;
    private static SwiftTagDefinition U000EU0003;
    private static SwiftTagSubItemDefinition U000FU0003;
    private static SwiftTagDefinition U0010U0003;
    private static SwiftTagDefinition U0011U0003;
    private static SwiftTagSubItemDefinition U0012U0003;
    private static SwiftTagSubItemDefinition U0013U0003;
    private static SwiftTagSubItemDefinition U0014U0003;
    private static SwiftTagSubItemDefinition U0015U0003;
    private static SwiftTagSubItemDefinition U0016U0003;
    private static SwiftTagSubItemDefinition U0017U0003;
    private static SwiftTagSequenceDefinition U0018U0003;
    private static SwiftTagDefinition U0019U0003;
    private static SwiftTagSubItemDefinition U001AU0003;
    private static SwiftTagDefinition U001BU0003;
    private static SwiftTagSubItemDefinition U001CU0003;
    private static SwiftTagDefinition U001DU0003;
    private static SwiftTagSubItemDefinition U001EU0003;
    private static SwiftTagDefinition U001FU0003;
    private static SwiftTagSubItemDefinition U007FU0003;
    private static SwiftTagSubItemDefinition U0080U0003;
    private static SwiftTagSequenceDefinition U0081U0003;
    private static SwiftTagDefinition U0082U0003;
    private static SwiftTagSubItemDefinition U0083U0003;
    private static SwiftTagDefinition U0084U0003;
    private static SwiftTagSubItemDefinition U0086U0003;
    private static SwiftTagDefinition U0087U0003;
    private static SwiftTagSubItemDefinition U0088U0003;
    private static SwiftTagSubItemDefinition U0089U0003;
    private static SwiftTagChoiceDefinition U008AU0003;
    private static SwiftTagDefinition U008BU0003;
    private static SwiftTagSubItemDefinition U008CU0003;
    private static SwiftTagSubItemDefinition U008DU0003;
    private static SwiftTagDefinition U008EU0003;
    private static SwiftTagSubItemDefinition U008FU0003;
    private static SwiftTagSubItemDefinition U0090U0003;
    private static SwiftTagDefinition U0091U0003;
    private static SwiftTagChoiceDefinition U0092U0003;
    private static SwiftTagDefinition U0093U0003;
    private static SwiftTagSubItemDefinition U0094U0003;
    private static SwiftTagSubItemDefinition U0095U0003;
    private static SwiftTagDefinition U0096U0003;
    private static SwiftTagSubItemDefinition U0097U0003;
    private static SwiftTagSubItemDefinition U0098U0003;
    private static SwiftTagDefinition U0099U0003;
    private static SwiftTagChoiceDefinition U009AU0003;
    private static SwiftTagDefinition U009BU0003;
    private static SwiftTagSubItemDefinition U009CU0003;
    private static SwiftTagSubItemDefinition U009DU0003;
    private static SwiftTagDefinition U009EU0003;
    private static SwiftTagSubItemDefinition U009FU0003;
    private static SwiftTagSubItemDefinition U0001U0004;
    private static SwiftTagDefinition U0002U0004;
    private static SwiftTagChoiceDefinition U0003U0004;
    private static SwiftTagDefinition U0004U0004;
    private static SwiftTagSubItemDefinition U0005U0004;
    private static SwiftTagSubItemDefinition U0006U0004;
    private static SwiftTagDefinition U0007U0004;
    private static SwiftTagSubItemDefinition U0008U0004;
    private static SwiftTagSubItemDefinition U000EU0004;
    private static SwiftTagDefinition U000FU0004;
    private static SwiftTagSubItemDefinition U0010U0004;

    [Description("General Information")]
    public MT304.SequenceAClass SequenceA
    {
      get
      {
        return new MT304.SequenceAClass((SwiftElement) this, 0, false);
      }
    }

    [Description("Forex Transaction Details")]
    public MT304.SequenceBClass SequenceB
    {
      get
      {
        return new MT304.SequenceBClass((SwiftElement) this, 0, false);
      }
    }

    [Description("Optional General Information")]
    public MT304.SequenceCClass SequenceC
    {
      get
      {
        MT304.SequenceCClass sequenceCclass = new MT304.SequenceCClass((SwiftElement) this, 0, false);
        if (this.ListTags((SwiftElement) sequenceCclass).Count > 0)
          return sequenceCclass;
        else
          return (MT304.SequenceCClass) null;
      }
    }

    [Description("Accounting Information")]
    public MT304.SequenceDClass SequenceD
    {
      get
      {
        MT304.SequenceDClass sequenceDclass = new MT304.SequenceDClass((SwiftElement) this, 0, false);
        if (this.ListTags((SwiftElement) sequenceDclass).Count > 0)
          return sequenceDclass;
        else
          return (MT304.SequenceDClass) null;
      }
    }

    [Description("Net Amount to be Settled")]
    public MT304.SequenceEClass SequenceE
    {
      get
      {
        MT304.SequenceEClass sequenceEclass = new MT304.SequenceEClass((SwiftElement) this, 0, false);
        if (this.ListTags((SwiftElement) sequenceEclass).Count > 0)
          return sequenceEclass;
        else
          return (MT304.SequenceEClass) null;
      }
    }

    public MT304()
      : base(true)
    {
    }

    public MT304(SwiftMessage message)
      : base(message)
    {
    }

    public MT304.SequenceCClass AddSequenceC()
    {
      return this.SequenceC ?? new MT304.SequenceCClass((SwiftElement) this, 0, true);
    }

    public void RemoveSequenceC(MT304.SequenceCClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    public MT304.SequenceDClass AddSequenceD()
    {
      return this.SequenceD ?? new MT304.SequenceDClass((SwiftElement) this, 0, true);
    }

    public void RemoveSequenceD(MT304.SequenceDClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    public MT304.SequenceEClass AddSequenceE()
    {
      return this.SequenceE ?? new MT304.SequenceEClass((SwiftElement) this, 0, true);
    }

    public void RemoveSequenceE(MT304.SequenceEClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT304.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT304.MessageDefinition = new SwiftMessageDefinition("MT304", "Advice/Instruction of a Third Party Deal");
      MT304.U0002 = new SwiftTagSequenceDefinition("SequenceA", "General Information");
      MT304.U0003 = new SwiftTagDefinition("NewSequence_A_15A", "New Sequence");
      MT304.U0003.TagName = ":15A:";
      MT304.U0004 = new SwiftTagSubItemDefinition("NewSequence", "New Sequence");
      MT304.U0004.Mandatory = false;
      MT304.U0003.Elements.Add((SwiftDefinitionElement) MT304.U0004);
      MT304.U0002.Elements.Add((SwiftDefinitionElement) MT304.U0003);
      MT304.U0005 = new SwiftTagDefinition("SendersReference_A_20", "Senders Reference");
      MT304.U0005.TagName = ":20:";
      MT304.U0006 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT304.U0005.Elements.Add((SwiftDefinitionElement) MT304.U0006);
      MT304.U0002.Elements.Add((SwiftDefinitionElement) MT304.U0005);
      MT304.U0007 = new SwiftTagDefinition("RelatedReference_A_21", "Related Reference");
      MT304.U0007.TagName = ":21:";
      MT304.U0007.Mandatory = false;
      MT304.U0008 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT304.U0007.Elements.Add((SwiftDefinitionElement) MT304.U0008);
      MT304.U0002.Elements.Add((SwiftDefinitionElement) MT304.U0007);
      MT304.U000E = new SwiftTagDefinition("TypeOfOperation_A_22A", "Type of Operation");
      MT304.U000E.TagName = ":22A:";
      MT304.U000F = new SwiftTagSubItemDefinition("Function", "Function");
      MT304.U000E.Elements.Add((SwiftDefinitionElement) MT304.U000F);
      MT304.U0002.Elements.Add((SwiftDefinitionElement) MT304.U000E);
      MT304.U0010 = new SwiftTagDefinition("ScopeOfOperation_A_94A", "Scope Of Operation");
      MT304.U0010.TagName = ":94A:";
      MT304.U0011 = new SwiftTagSubItemDefinition("Scope", "Scope");
      MT304.U0010.Elements.Add((SwiftDefinitionElement) MT304.U0011);
      MT304.U0002.Elements.Add((SwiftDefinitionElement) MT304.U0010);
      MT304.U0012 = new SwiftTagDefinition("OpenIndicator_A_17O", "Open Indicator");
      MT304.U0012.TagName = ":17O:";
      MT304.U0012.Mandatory = false;
      MT304.U0013 = new SwiftTagSubItemDefinition("Indicator", "Indicator");
      MT304.U0012.Elements.Add((SwiftDefinitionElement) MT304.U0013);
      MT304.U0002.Elements.Add((SwiftDefinitionElement) MT304.U0012);
      MT304.U0014 = new SwiftTagDefinition("FinalCloseIndicator_A_17F", "Final Close Indicator");
      MT304.U0014.TagName = ":17F:";
      MT304.U0014.Mandatory = false;
      MT304.U0015 = new SwiftTagSubItemDefinition("Indicator", "Indicator");
      MT304.U0014.Elements.Add((SwiftDefinitionElement) MT304.U0015);
      MT304.U0002.Elements.Add((SwiftDefinitionElement) MT304.U0014);
      MT304.U0016 = new SwiftTagDefinition("NetSettlementIndicator_A_17N", "Net Settlement Indicator");
      MT304.U0016.TagName = ":17N:";
      MT304.U0016.Mandatory = false;
      MT304.U0017 = new SwiftTagSubItemDefinition("Indicator", "Indicator");
      MT304.U0016.Elements.Add((SwiftDefinitionElement) MT304.U0017);
      MT304.U0002.Elements.Add((SwiftDefinitionElement) MT304.U0016);
      MT304.U0018 = new SwiftTagChoiceDefinition("Choice", "");
      MT304.U0018.Multiple = true;
      MT304.U0019 = new SwiftTagDefinition("Fund_A_83A", "Fund");
      MT304.U0019.TagName = ":83A:";
      MT304.U001A = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U001A.Mandatory = false;
      MT304.U0019.Elements.Add((SwiftDefinitionElement) MT304.U001A);
      MT304.U001B = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT304.U0019.Elements.Add((SwiftDefinitionElement) MT304.U001B);
      MT304.U0018.Elements.Add((SwiftDefinitionElement) MT304.U0019);
      MT304.U001C = new SwiftTagDefinition("Fund_A_83D", "Fund");
      MT304.U001C.TagName = ":83D:";
      MT304.U001D = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U001D.Mandatory = false;
      MT304.U001C.Elements.Add((SwiftDefinitionElement) MT304.U001D);
      MT304.U001E = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT304.U001C.Elements.Add((SwiftDefinitionElement) MT304.U001E);
      MT304.U0018.Elements.Add((SwiftDefinitionElement) MT304.U001C);
      MT304.U001F = new SwiftTagDefinition("Fund_A_83J", "Fund");
      MT304.U001F.TagName = ":83J:";
      MT304.U007F = new SwiftTagSubItemDefinition("PartyIdentification2", "Party Identification");
      MT304.U001F.Elements.Add((SwiftDefinitionElement) MT304.U007F);
      MT304.U0018.Elements.Add((SwiftDefinitionElement) MT304.U001F);
      MT304.U0002.Elements.Add((SwiftDefinitionElement) MT304.U0018);
      MT304.U0080 = new SwiftTagChoiceDefinition("Choice", "");
      MT304.U0080.Multiple = true;
      MT304.U0081 = new SwiftTagDefinition("FundManager_A_82A", "Fund Manager");
      MT304.U0081.TagName = ":82A:";
      MT304.U0082 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U0082.Mandatory = false;
      MT304.U0081.Elements.Add((SwiftDefinitionElement) MT304.U0082);
      MT304.U0083 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT304.U0081.Elements.Add((SwiftDefinitionElement) MT304.U0083);
      MT304.U0080.Elements.Add((SwiftDefinitionElement) MT304.U0081);
      MT304.U0084 = new SwiftTagDefinition("FundManager_A_82D", "Fund Manager");
      MT304.U0084.TagName = ":82D:";
      MT304.U0086 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U0086.Mandatory = false;
      MT304.U0084.Elements.Add((SwiftDefinitionElement) MT304.U0086);
      MT304.U0087 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT304.U0084.Elements.Add((SwiftDefinitionElement) MT304.U0087);
      MT304.U0080.Elements.Add((SwiftDefinitionElement) MT304.U0084);
      MT304.U0088 = new SwiftTagDefinition("FundManager_A_82J", "Fund Manager");
      MT304.U0088.TagName = ":82J:";
      MT304.U0089 = new SwiftTagSubItemDefinition("PartyIdentification2", "Party Identification");
      MT304.U0088.Elements.Add((SwiftDefinitionElement) MT304.U0089);
      MT304.U0080.Elements.Add((SwiftDefinitionElement) MT304.U0088);
      MT304.U0002.Elements.Add((SwiftDefinitionElement) MT304.U0080);
      MT304.U008A = new SwiftTagChoiceDefinition("Choice", "");
      MT304.U008A.Multiple = true;
      MT304.U008B = new SwiftTagDefinition("ExecutingBroker_A_87A", "Executing Broker");
      MT304.U008B.TagName = ":87A:";
      MT304.U008C = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U008C.Mandatory = false;
      MT304.U008B.Elements.Add((SwiftDefinitionElement) MT304.U008C);
      MT304.U008D = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT304.U008B.Elements.Add((SwiftDefinitionElement) MT304.U008D);
      MT304.U008A.Elements.Add((SwiftDefinitionElement) MT304.U008B);
      MT304.U008E = new SwiftTagDefinition("ExecutingBroker_A_87D", "Executing Broker");
      MT304.U008E.TagName = ":87D:";
      MT304.U008F = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U008F.Mandatory = false;
      MT304.U008E.Elements.Add((SwiftDefinitionElement) MT304.U008F);
      MT304.U0090 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT304.U008E.Elements.Add((SwiftDefinitionElement) MT304.U0090);
      MT304.U008A.Elements.Add((SwiftDefinitionElement) MT304.U008E);
      MT304.U0091 = new SwiftTagDefinition("ExecutingBroker_A_87J", "Executing Broker");
      MT304.U0091.TagName = ":87J:";
      MT304.U0092 = new SwiftTagSubItemDefinition("PartyIdentification2", "Party Identification");
      MT304.U0091.Elements.Add((SwiftDefinitionElement) MT304.U0092);
      MT304.U008A.Elements.Add((SwiftDefinitionElement) MT304.U0091);
      MT304.U0002.Elements.Add((SwiftDefinitionElement) MT304.U008A);
      MT304.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT304.U0002);
      MT304.U0093 = new SwiftTagSequenceDefinition("SequenceB", "Forex Transaction Details");
      MT304.U0094 = new SwiftTagDefinition("NewSequence_B_15B", "New Sequence");
      MT304.U0094.TagName = ":15B:";
      MT304.U0095 = new SwiftTagSubItemDefinition("NewSequence", "New Sequence");
      MT304.U0095.Mandatory = false;
      MT304.U0094.Elements.Add((SwiftDefinitionElement) MT304.U0095);
      MT304.U0093.Elements.Add((SwiftDefinitionElement) MT304.U0094);
      MT304.U0096 = new SwiftTagDefinition("TradeDate_B_30T", "Trade Date");
      MT304.U0096.TagName = ":30T:";
      MT304.U0097 = new SwiftTagSubItemDefinition("Date", "Date");
      MT304.U0096.Elements.Add((SwiftDefinitionElement) MT304.U0097);
      MT304.U0093.Elements.Add((SwiftDefinitionElement) MT304.U0096);
      MT304.U0098 = new SwiftTagDefinition("ValueDate_B_30V", "Value Date");
      MT304.U0098.TagName = ":30V:";
      MT304.U0099 = new SwiftTagSubItemDefinition("Date", "Date");
      MT304.U0098.Elements.Add((SwiftDefinitionElement) MT304.U0099);
      MT304.U0093.Elements.Add((SwiftDefinitionElement) MT304.U0098);
      MT304.U009A = new SwiftTagDefinition("ExchangeRate_B_36", "Exchange Rate");
      MT304.U009A.TagName = ":36:";
      MT304.U009B = new SwiftTagSubItemDefinition("Rate", "Rate");
      MT304.U009A.Elements.Add((SwiftDefinitionElement) MT304.U009B);
      MT304.U0093.Elements.Add((SwiftDefinitionElement) MT304.U009A);
      MT304.U009C = new SwiftTagSequenceDefinition("SequenceB1", "Amount Bought");
      MT304.U009D = new SwiftTagDefinition("CurrencyAmountBought_B1_32B", "Currency, Amount Bought");
      MT304.U009D.TagName = ":32B:";
      MT304.U009E = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT304.U009D.Elements.Add((SwiftDefinitionElement) MT304.U009E);
      MT304.U009F = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT304.U009D.Elements.Add((SwiftDefinitionElement) MT304.U009F);
      MT304.U009C.Elements.Add((SwiftDefinitionElement) MT304.U009D);
      MT304.U0001U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT304.U0001U0002.Multiple = true;
      MT304.U0002U0002 = new SwiftTagDefinition("DeliveryAgent_B1_53A", "Delivery Agent");
      MT304.U0002U0002.TagName = ":53A:";
      MT304.U0003U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U0003U0002.Mandatory = false;
      MT304.U0002U0002.Elements.Add((SwiftDefinitionElement) MT304.U0003U0002);
      MT304.U0004U0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT304.U0002U0002.Elements.Add((SwiftDefinitionElement) MT304.U0004U0002);
      MT304.U0001U0002.Elements.Add((SwiftDefinitionElement) MT304.U0002U0002);
      MT304.U0005U0002 = new SwiftTagDefinition("DeliveryAgent_B1_53D", "Delivery Agent");
      MT304.U0005U0002.TagName = ":53D:";
      MT304.U0006U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U0006U0002.Mandatory = false;
      MT304.U0005U0002.Elements.Add((SwiftDefinitionElement) MT304.U0006U0002);
      MT304.U0007U0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT304.U0005U0002.Elements.Add((SwiftDefinitionElement) MT304.U0007U0002);
      MT304.U0001U0002.Elements.Add((SwiftDefinitionElement) MT304.U0005U0002);
      MT304.U0008U0002 = new SwiftTagDefinition("DeliveryAgent_B1_53J", "Delivery Agent");
      MT304.U0008U0002.TagName = ":53J:";
      MT304.U0001U0002.Elements.Add((SwiftDefinitionElement) MT304.U0008U0002);
      MT304.U009C.Elements.Add((SwiftDefinitionElement) MT304.U0001U0002);
      MT304.U000EU0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT304.U000EU0002.Mandatory = false;
      MT304.U000EU0002.Multiple = true;
      MT304.U000FU0002 = new SwiftTagDefinition("Intermediary_B1_56A", "Intermediary");
      MT304.U000FU0002.TagName = ":56A:";
      MT304.U0010U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U0010U0002.Mandatory = false;
      MT304.U000FU0002.Elements.Add((SwiftDefinitionElement) MT304.U0010U0002);
      MT304.U0011U0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT304.U000FU0002.Elements.Add((SwiftDefinitionElement) MT304.U0011U0002);
      MT304.U000EU0002.Elements.Add((SwiftDefinitionElement) MT304.U000FU0002);
      MT304.U0012U0002 = new SwiftTagDefinition("Intermediary_B1_56D", "Intermediary");
      MT304.U0012U0002.TagName = ":56D:";
      MT304.U0013U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U0013U0002.Mandatory = false;
      MT304.U0012U0002.Elements.Add((SwiftDefinitionElement) MT304.U0013U0002);
      MT304.U0014U0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT304.U0012U0002.Elements.Add((SwiftDefinitionElement) MT304.U0014U0002);
      MT304.U000EU0002.Elements.Add((SwiftDefinitionElement) MT304.U0012U0002);
      MT304.U0015U0002 = new SwiftTagDefinition("Intermediary_B1_56J", "Intermediary");
      MT304.U0015U0002.TagName = ":56J:";
      MT304.U000EU0002.Elements.Add((SwiftDefinitionElement) MT304.U0015U0002);
      MT304.U009C.Elements.Add((SwiftDefinitionElement) MT304.U000EU0002);
      MT304.U0016U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT304.U0016U0002.Mandatory = false;
      MT304.U0016U0002.Multiple = true;
      MT304.U0017U0002 = new SwiftTagDefinition("ReceivingAgent_B1_57A", "Receiving Agent");
      MT304.U0017U0002.TagName = ":57A:";
      MT304.U0018U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U0018U0002.Mandatory = false;
      MT304.U0017U0002.Elements.Add((SwiftDefinitionElement) MT304.U0018U0002);
      MT304.U0019U0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT304.U0017U0002.Elements.Add((SwiftDefinitionElement) MT304.U0019U0002);
      MT304.U0016U0002.Elements.Add((SwiftDefinitionElement) MT304.U0017U0002);
      MT304.U001AU0002 = new SwiftTagDefinition("ReceivingAgent_B1_57D", "Receiving Agent");
      MT304.U001AU0002.TagName = ":57D:";
      MT304.U001BU0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U001BU0002.Mandatory = false;
      MT304.U001AU0002.Elements.Add((SwiftDefinitionElement) MT304.U001BU0002);
      MT304.U001CU0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT304.U001AU0002.Elements.Add((SwiftDefinitionElement) MT304.U001CU0002);
      MT304.U0016U0002.Elements.Add((SwiftDefinitionElement) MT304.U001AU0002);
      MT304.U001DU0002 = new SwiftTagDefinition("ReceivingAgent_B1_57J", "Receiving Agent");
      MT304.U001DU0002.TagName = ":57J:";
      MT304.U0016U0002.Elements.Add((SwiftDefinitionElement) MT304.U001DU0002);
      MT304.U009C.Elements.Add((SwiftDefinitionElement) MT304.U0016U0002);
      MT304.U0093.Elements.Add((SwiftDefinitionElement) MT304.U009C);
      MT304.U001EU0002 = new SwiftTagSequenceDefinition("SequenceB2", "Amount Sold");
      MT304.U001FU0002 = new SwiftTagDefinition("CurrencyAmountSold_B2_33B", "Currency, Amount Sold");
      MT304.U001FU0002.TagName = ":33B:";
      MT304.U007FU0002 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT304.U001FU0002.Elements.Add((SwiftDefinitionElement) MT304.U007FU0002);
      MT304.U0080U0002 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT304.U001FU0002.Elements.Add((SwiftDefinitionElement) MT304.U0080U0002);
      MT304.U001EU0002.Elements.Add((SwiftDefinitionElement) MT304.U001FU0002);
      MT304.U0081U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT304.U0081U0002.Mandatory = false;
      MT304.U0081U0002.Multiple = true;
      MT304.U0082U0002 = new SwiftTagDefinition("DeliveryAgent_B2_53A", "Delivery Agent");
      MT304.U0082U0002.TagName = ":53A:";
      MT304.U0083U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U0083U0002.Mandatory = false;
      MT304.U0082U0002.Elements.Add((SwiftDefinitionElement) MT304.U0083U0002);
      MT304.U0084U0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT304.U0082U0002.Elements.Add((SwiftDefinitionElement) MT304.U0084U0002);
      MT304.U0081U0002.Elements.Add((SwiftDefinitionElement) MT304.U0082U0002);
      MT304.U0086U0002 = new SwiftTagDefinition("DeliveryAgent_B2_53D", "Delivery Agent");
      MT304.U0086U0002.TagName = ":53D:";
      MT304.U0087U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U0087U0002.Mandatory = false;
      MT304.U0086U0002.Elements.Add((SwiftDefinitionElement) MT304.U0087U0002);
      MT304.U0088U0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT304.U0086U0002.Elements.Add((SwiftDefinitionElement) MT304.U0088U0002);
      MT304.U0081U0002.Elements.Add((SwiftDefinitionElement) MT304.U0086U0002);
      MT304.U0089U0002 = new SwiftTagDefinition("DeliveryAgent_B2_53J", "Delivery Agent");
      MT304.U0089U0002.TagName = ":53J:";
      MT304.U0081U0002.Elements.Add((SwiftDefinitionElement) MT304.U0089U0002);
      MT304.U001EU0002.Elements.Add((SwiftDefinitionElement) MT304.U0081U0002);
      MT304.U008AU0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT304.U008AU0002.Mandatory = false;
      MT304.U008AU0002.Multiple = true;
      MT304.U008BU0002 = new SwiftTagDefinition("Intermediary_B2_56A", "Intermediary");
      MT304.U008BU0002.TagName = ":56A:";
      MT304.U008CU0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U008CU0002.Mandatory = false;
      MT304.U008BU0002.Elements.Add((SwiftDefinitionElement) MT304.U008CU0002);
      MT304.U008DU0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT304.U008BU0002.Elements.Add((SwiftDefinitionElement) MT304.U008DU0002);
      MT304.U008AU0002.Elements.Add((SwiftDefinitionElement) MT304.U008BU0002);
      MT304.U008EU0002 = new SwiftTagDefinition("Intermediary_B2_56D", "Intermediary");
      MT304.U008EU0002.TagName = ":56D:";
      MT304.U008FU0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U008FU0002.Mandatory = false;
      MT304.U008EU0002.Elements.Add((SwiftDefinitionElement) MT304.U008FU0002);
      MT304.U0090U0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT304.U008EU0002.Elements.Add((SwiftDefinitionElement) MT304.U0090U0002);
      MT304.U008AU0002.Elements.Add((SwiftDefinitionElement) MT304.U008EU0002);
      MT304.U0091U0002 = new SwiftTagDefinition("Intermediary_B2_56J", "Intermediary");
      MT304.U0091U0002.TagName = ":56J:";
      MT304.U008AU0002.Elements.Add((SwiftDefinitionElement) MT304.U0091U0002);
      MT304.U001EU0002.Elements.Add((SwiftDefinitionElement) MT304.U008AU0002);
      MT304.U0092U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT304.U0092U0002.Multiple = true;
      MT304.U0093U0002 = new SwiftTagDefinition("ReceivingAgent_B2_57A", "Receiving Agent");
      MT304.U0093U0002.TagName = ":57A:";
      MT304.U0094U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U0094U0002.Mandatory = false;
      MT304.U0093U0002.Elements.Add((SwiftDefinitionElement) MT304.U0094U0002);
      MT304.U0095U0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT304.U0093U0002.Elements.Add((SwiftDefinitionElement) MT304.U0095U0002);
      MT304.U0092U0002.Elements.Add((SwiftDefinitionElement) MT304.U0093U0002);
      MT304.U0096U0002 = new SwiftTagDefinition("ReceivingAgent_B2_57D", "Receiving Agent");
      MT304.U0096U0002.TagName = ":57D:";
      MT304.U0097U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U0097U0002.Mandatory = false;
      MT304.U0096U0002.Elements.Add((SwiftDefinitionElement) MT304.U0097U0002);
      MT304.U0098U0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT304.U0096U0002.Elements.Add((SwiftDefinitionElement) MT304.U0098U0002);
      MT304.U0092U0002.Elements.Add((SwiftDefinitionElement) MT304.U0096U0002);
      MT304.U0099U0002 = new SwiftTagDefinition("ReceivingAgent_B2_57J", "Receiving Agent");
      MT304.U0099U0002.TagName = ":57J:";
      MT304.U0092U0002.Elements.Add((SwiftDefinitionElement) MT304.U0099U0002);
      MT304.U001EU0002.Elements.Add((SwiftDefinitionElement) MT304.U0092U0002);
      MT304.U009AU0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT304.U009AU0002.Mandatory = false;
      MT304.U009AU0002.Multiple = true;
      MT304.U009BU0002 = new SwiftTagDefinition("BeneficiaryInstitution_B2_58A", "Beneficiary Institution");
      MT304.U009BU0002.TagName = ":58A:";
      MT304.U009CU0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U009CU0002.Mandatory = false;
      MT304.U009BU0002.Elements.Add((SwiftDefinitionElement) MT304.U009CU0002);
      MT304.U009DU0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT304.U009BU0002.Elements.Add((SwiftDefinitionElement) MT304.U009DU0002);
      MT304.U009AU0002.Elements.Add((SwiftDefinitionElement) MT304.U009BU0002);
      MT304.U009EU0002 = new SwiftTagDefinition("BeneficiaryInstitution_B2_58D", "Beneficiary Institution");
      MT304.U009EU0002.TagName = ":58D:";
      MT304.U009FU0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U009FU0002.Mandatory = false;
      MT304.U009EU0002.Elements.Add((SwiftDefinitionElement) MT304.U009FU0002);
      MT304.U0001U0003 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT304.U009EU0002.Elements.Add((SwiftDefinitionElement) MT304.U0001U0003);
      MT304.U009AU0002.Elements.Add((SwiftDefinitionElement) MT304.U009EU0002);
      MT304.U0002U0003 = new SwiftTagDefinition("BeneficiaryInstitution_B2_58J", "Beneficiary Institution");
      MT304.U0002U0003.TagName = ":58J:";
      MT304.U0003U0003 = new SwiftTagSubItemDefinition("PartyIdentification2", "Party Identification");
      MT304.U0002U0003.Elements.Add((SwiftDefinitionElement) MT304.U0003U0003);
      MT304.U009AU0002.Elements.Add((SwiftDefinitionElement) MT304.U0002U0003);
      MT304.U001EU0002.Elements.Add((SwiftDefinitionElement) MT304.U009AU0002);
      MT304.U0093.Elements.Add((SwiftDefinitionElement) MT304.U001EU0002);
      MT304.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT304.U0093);
      MT304.U0004U0003 = new SwiftTagSequenceDefinition("SequenceC", "Optional General Information");
      MT304.U0004U0003.Mandatory = false;
      MT304.U0005U0003 = new SwiftTagDefinition("NewSequence_C_15C", "New Sequence");
      MT304.U0005U0003.TagName = ":15C:";
      MT304.U0006U0003 = new SwiftTagSubItemDefinition("NewSequence", "New Sequence");
      MT304.U0006U0003.Mandatory = false;
      MT304.U0005U0003.Elements.Add((SwiftDefinitionElement) MT304.U0006U0003);
      MT304.U0004U0003.Elements.Add((SwiftDefinitionElement) MT304.U0005U0003);
      MT304.U0007U0003 = new SwiftTagDefinition("ReferenceToTheAssociatedTrade_C_21A", "Reference to the Associated Trade");
      MT304.U0007U0003.TagName = ":21A:";
      MT304.U0007U0003.Mandatory = false;
      MT304.U0008U0003 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT304.U0007U0003.Elements.Add((SwiftDefinitionElement) MT304.U0008U0003);
      MT304.U0004U0003.Elements.Add((SwiftDefinitionElement) MT304.U0007U0003);
      MT304.U000EU0003 = new SwiftTagDefinition("ExecutingBrokersReference_C_21G", "Executing Broker’s Reference");
      MT304.U000EU0003.TagName = ":21G:";
      MT304.U000EU0003.Mandatory = false;
      MT304.U000FU0003 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT304.U000EU0003.Elements.Add((SwiftDefinitionElement) MT304.U000FU0003);
      MT304.U0004U0003.Elements.Add((SwiftDefinitionElement) MT304.U000EU0003);
      MT304.U0010U0003 = new SwiftTagDefinition("ContactInformation_C_29A", "Contact Information");
      MT304.U0010U0003.TagName = ":29A:";
      MT304.U0010U0003.Mandatory = false;
      MT304.U0004U0003.Elements.Add((SwiftDefinitionElement) MT304.U0010U0003);
      MT304.U0011U0003 = new SwiftTagDefinition("SenderToReceiverInformation_C_72", "Sender To Receiver Information");
      MT304.U0011U0003.TagName = ":72:";
      MT304.U0011U0003.Mandatory = false;
      MT304.U0012U0003 = new SwiftTagSubItemDefinition("Line1", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x]");
      MT304.U0011U0003.Elements.Add((SwiftDefinitionElement) MT304.U0012U0003);
      MT304.U0013U0003 = new SwiftTagSubItemDefinition("Line2", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT304.U0013U0003.Mandatory = false;
      MT304.U0011U0003.Elements.Add((SwiftDefinitionElement) MT304.U0013U0003);
      MT304.U0014U0003 = new SwiftTagSubItemDefinition("Line3", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT304.U0014U0003.Mandatory = false;
      MT304.U0011U0003.Elements.Add((SwiftDefinitionElement) MT304.U0014U0003);
      MT304.U0015U0003 = new SwiftTagSubItemDefinition("Line4", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT304.U0015U0003.Mandatory = false;
      MT304.U0011U0003.Elements.Add((SwiftDefinitionElement) MT304.U0015U0003);
      MT304.U0016U0003 = new SwiftTagSubItemDefinition("Line5", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT304.U0016U0003.Mandatory = false;
      MT304.U0011U0003.Elements.Add((SwiftDefinitionElement) MT304.U0016U0003);
      MT304.U0017U0003 = new SwiftTagSubItemDefinition("Line6", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT304.U0017U0003.Mandatory = false;
      MT304.U0011U0003.Elements.Add((SwiftDefinitionElement) MT304.U0017U0003);
      MT304.U0004U0003.Elements.Add((SwiftDefinitionElement) MT304.U0011U0003);
      MT304.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT304.U0004U0003);
      MT304.U0018U0003 = new SwiftTagSequenceDefinition("SequenceD", "Accounting Information");
      MT304.U0018U0003.Mandatory = false;
      MT304.U0019U0003 = new SwiftTagDefinition("NewSequence_D_15D", "New Sequence");
      MT304.U0019U0003.TagName = ":15D:";
      MT304.U001AU0003 = new SwiftTagSubItemDefinition("NewSequence", "New Sequence");
      MT304.U001AU0003.Mandatory = false;
      MT304.U0019U0003.Elements.Add((SwiftDefinitionElement) MT304.U001AU0003);
      MT304.U0018U0003.Elements.Add((SwiftDefinitionElement) MT304.U0019U0003);
      MT304.U001BU0003 = new SwiftTagDefinition("ReferenceToPreviousDeals_D_21P", "Reference to Previous Deals");
      MT304.U001BU0003.TagName = ":21P:";
      MT304.U001BU0003.Multiple = true;
      MT304.U001CU0003 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT304.U001BU0003.Elements.Add((SwiftDefinitionElement) MT304.U001CU0003);
      MT304.U0018U0003.Elements.Add((SwiftDefinitionElement) MT304.U001BU0003);
      MT304.U001DU0003 = new SwiftTagDefinition("GainLossIndicator_D_17G", "Gain (Loss) Indicator");
      MT304.U001DU0003.TagName = ":17G:";
      MT304.U001EU0003 = new SwiftTagSubItemDefinition("Indicator", "Indicator");
      MT304.U001DU0003.Elements.Add((SwiftDefinitionElement) MT304.U001EU0003);
      MT304.U0018U0003.Elements.Add((SwiftDefinitionElement) MT304.U001DU0003);
      MT304.U001FU0003 = new SwiftTagDefinition("CurrencyAmount_D_32G", "Currency, Amount");
      MT304.U001FU0003.TagName = ":32G:";
      MT304.U007FU0003 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT304.U001FU0003.Elements.Add((SwiftDefinitionElement) MT304.U007FU0003);
      MT304.U0080U0003 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT304.U001FU0003.Elements.Add((SwiftDefinitionElement) MT304.U0080U0003);
      MT304.U0018U0003.Elements.Add((SwiftDefinitionElement) MT304.U001FU0003);
      MT304.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT304.U0018U0003);
      MT304.U0081U0003 = new SwiftTagSequenceDefinition("SequenceE", "Net Amount to be Settled");
      MT304.U0081U0003.Mandatory = false;
      MT304.U0082U0003 = new SwiftTagDefinition("NewSequence_E_15E", "New Sequence");
      MT304.U0082U0003.TagName = ":15E:";
      MT304.U0083U0003 = new SwiftTagSubItemDefinition("NewSequence", "New Sequence");
      MT304.U0083U0003.Mandatory = false;
      MT304.U0082U0003.Elements.Add((SwiftDefinitionElement) MT304.U0083U0003);
      MT304.U0081U0003.Elements.Add((SwiftDefinitionElement) MT304.U0082U0003);
      MT304.U0084U0003 = new SwiftTagDefinition("GainLossIndicator_E_17G", "Gain (Loss) Indicator");
      MT304.U0084U0003.TagName = ":17G:";
      MT304.U0086U0003 = new SwiftTagSubItemDefinition("Indicator", "Indicator");
      MT304.U0084U0003.Elements.Add((SwiftDefinitionElement) MT304.U0086U0003);
      MT304.U0081U0003.Elements.Add((SwiftDefinitionElement) MT304.U0084U0003);
      MT304.U0087U0003 = new SwiftTagDefinition("CurrencyAmount_E_32G", "Currency, Amount");
      MT304.U0087U0003.TagName = ":32G:";
      MT304.U0088U0003 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT304.U0087U0003.Elements.Add((SwiftDefinitionElement) MT304.U0088U0003);
      MT304.U0089U0003 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT304.U0087U0003.Elements.Add((SwiftDefinitionElement) MT304.U0089U0003);
      MT304.U0081U0003.Elements.Add((SwiftDefinitionElement) MT304.U0087U0003);
      MT304.U008AU0003 = new SwiftTagChoiceDefinition("Choice", "");
      MT304.U008AU0003.Mandatory = false;
      MT304.U008AU0003.Multiple = true;
      MT304.U008BU0003 = new SwiftTagDefinition("DeliveryAgent_E_53A", "Delivery Agent");
      MT304.U008BU0003.TagName = ":53A:";
      MT304.U008CU0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U008CU0003.Mandatory = false;
      MT304.U008BU0003.Elements.Add((SwiftDefinitionElement) MT304.U008CU0003);
      MT304.U008DU0003 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT304.U008BU0003.Elements.Add((SwiftDefinitionElement) MT304.U008DU0003);
      MT304.U008AU0003.Elements.Add((SwiftDefinitionElement) MT304.U008BU0003);
      MT304.U008EU0003 = new SwiftTagDefinition("DeliveryAgent_E_53D", "Delivery Agent");
      MT304.U008EU0003.TagName = ":53D:";
      MT304.U008FU0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U008FU0003.Mandatory = false;
      MT304.U008EU0003.Elements.Add((SwiftDefinitionElement) MT304.U008FU0003);
      MT304.U0090U0003 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT304.U008EU0003.Elements.Add((SwiftDefinitionElement) MT304.U0090U0003);
      MT304.U008AU0003.Elements.Add((SwiftDefinitionElement) MT304.U008EU0003);
      MT304.U0091U0003 = new SwiftTagDefinition("DeliveryAgent_E_53J", "Delivery Agent");
      MT304.U0091U0003.TagName = ":53J:";
      MT304.U008AU0003.Elements.Add((SwiftDefinitionElement) MT304.U0091U0003);
      MT304.U0081U0003.Elements.Add((SwiftDefinitionElement) MT304.U008AU0003);
      MT304.U0092U0003 = new SwiftTagChoiceDefinition("Choice", "");
      MT304.U0092U0003.Mandatory = false;
      MT304.U0092U0003.Multiple = true;
      MT304.U0093U0003 = new SwiftTagDefinition("Intermediary_E_56A", "Intermediary");
      MT304.U0093U0003.TagName = ":56A:";
      MT304.U0094U0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U0094U0003.Mandatory = false;
      MT304.U0093U0003.Elements.Add((SwiftDefinitionElement) MT304.U0094U0003);
      MT304.U0095U0003 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT304.U0093U0003.Elements.Add((SwiftDefinitionElement) MT304.U0095U0003);
      MT304.U0092U0003.Elements.Add((SwiftDefinitionElement) MT304.U0093U0003);
      MT304.U0096U0003 = new SwiftTagDefinition("Intermediary_E_56D", "Intermediary");
      MT304.U0096U0003.TagName = ":56D:";
      MT304.U0097U0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U0097U0003.Mandatory = false;
      MT304.U0096U0003.Elements.Add((SwiftDefinitionElement) MT304.U0097U0003);
      MT304.U0098U0003 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT304.U0096U0003.Elements.Add((SwiftDefinitionElement) MT304.U0098U0003);
      MT304.U0092U0003.Elements.Add((SwiftDefinitionElement) MT304.U0096U0003);
      MT304.U0099U0003 = new SwiftTagDefinition("Intermediary_E_56J", "Intermediary");
      MT304.U0099U0003.TagName = ":56J:";
      MT304.U0092U0003.Elements.Add((SwiftDefinitionElement) MT304.U0099U0003);
      MT304.U0081U0003.Elements.Add((SwiftDefinitionElement) MT304.U0092U0003);
      MT304.U009AU0003 = new SwiftTagChoiceDefinition("Choice", "");
      MT304.U009AU0003.Mandatory = false;
      MT304.U009AU0003.Multiple = true;
      MT304.U009BU0003 = new SwiftTagDefinition("ReceivingAgent_E_57A", "Receiving Agent");
      MT304.U009BU0003.TagName = ":57A:";
      MT304.U009CU0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U009CU0003.Mandatory = false;
      MT304.U009BU0003.Elements.Add((SwiftDefinitionElement) MT304.U009CU0003);
      MT304.U009DU0003 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT304.U009BU0003.Elements.Add((SwiftDefinitionElement) MT304.U009DU0003);
      MT304.U009AU0003.Elements.Add((SwiftDefinitionElement) MT304.U009BU0003);
      MT304.U009EU0003 = new SwiftTagDefinition("ReceivingAgent_E_57D", "Receiving Agent");
      MT304.U009EU0003.TagName = ":57D:";
      MT304.U009FU0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U009FU0003.Mandatory = false;
      MT304.U009EU0003.Elements.Add((SwiftDefinitionElement) MT304.U009FU0003);
      MT304.U0001U0004 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT304.U009EU0003.Elements.Add((SwiftDefinitionElement) MT304.U0001U0004);
      MT304.U009AU0003.Elements.Add((SwiftDefinitionElement) MT304.U009EU0003);
      MT304.U0002U0004 = new SwiftTagDefinition("ReceivingAgent_E_57J", "Receiving Agent");
      MT304.U0002U0004.TagName = ":57J:";
      MT304.U009AU0003.Elements.Add((SwiftDefinitionElement) MT304.U0002U0004);
      MT304.U0081U0003.Elements.Add((SwiftDefinitionElement) MT304.U009AU0003);
      MT304.U0003U0004 = new SwiftTagChoiceDefinition("Choice", "");
      MT304.U0003U0004.Mandatory = false;
      MT304.U0003U0004.Multiple = true;
      MT304.U0004U0004 = new SwiftTagDefinition("BeneficiaryInstitution_E_58A", "Beneficiary Institution");
      MT304.U0004U0004.TagName = ":58A:";
      MT304.U0005U0004 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U0005U0004.Mandatory = false;
      MT304.U0004U0004.Elements.Add((SwiftDefinitionElement) MT304.U0005U0004);
      MT304.U0006U0004 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT304.U0004U0004.Elements.Add((SwiftDefinitionElement) MT304.U0006U0004);
      MT304.U0003U0004.Elements.Add((SwiftDefinitionElement) MT304.U0004U0004);
      MT304.U0007U0004 = new SwiftTagDefinition("BeneficiaryInstitution_E_58D", "Beneficiary Institution");
      MT304.U0007U0004.TagName = ":58D:";
      MT304.U0008U0004 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT304.U0008U0004.Mandatory = false;
      MT304.U0007U0004.Elements.Add((SwiftDefinitionElement) MT304.U0008U0004);
      MT304.U000EU0004 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT304.U0007U0004.Elements.Add((SwiftDefinitionElement) MT304.U000EU0004);
      MT304.U0003U0004.Elements.Add((SwiftDefinitionElement) MT304.U0007U0004);
      MT304.U000FU0004 = new SwiftTagDefinition("BeneficiaryInstitution_E_58J", "Beneficiary Institution");
      MT304.U000FU0004.TagName = ":58J:";
      MT304.U0010U0004 = new SwiftTagSubItemDefinition("PartyIdentification2", "Party Identification");
      MT304.U000FU0004.Elements.Add((SwiftDefinitionElement) MT304.U0010U0004);
      MT304.U0003U0004.Elements.Add((SwiftDefinitionElement) MT304.U000FU0004);
      MT304.U0081U0003.Elements.Add((SwiftDefinitionElement) MT304.U0003U0004);
      MT304.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT304.U0081U0003);
    }

    public class SequenceAClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT304.U0002;
        }
      }

      [Description("New Sequence")]
      public Tag15A NewSequence_A_15A
      {
        get
        {
          return new Tag15A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0003);
        }
      }

      [Description("New Sequence")]
      public Tag15A Tag15A_NewSequence_A
      {
        get
        {
          return this.NewSequence_A_15A;
        }
      }

      [Description("Senders Reference")]
      public Tag20 SendersReference_A_20
      {
        get
        {
          return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0005);
        }
      }

      [Description("Senders Reference")]
      public Tag20 Tag20_SendersReference_A
      {
        get
        {
          return this.SendersReference_A_20;
        }
      }

      [Description("Related Reference")]
      public Tag21 RelatedReference_A_21
      {
        get
        {
          return new Tag21((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0007);
        }
      }

      [Description("Related Reference")]
      public Tag21 Tag21_RelatedReference_A
      {
        get
        {
          return this.RelatedReference_A_21;
        }
      }

      [Description("Type of Operation")]
      public Tag22A TypeOfOperation_A_22A
      {
        get
        {
          return new Tag22A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U000E);
        }
      }

      [Description("Type of Operation")]
      public Tag22A Tag22A_TypeOfOperation_A
      {
        get
        {
          return this.TypeOfOperation_A_22A;
        }
      }

      [Description("Scope Of Operation")]
      public Tag94A ScopeOfOperation_A_94A
      {
        get
        {
          return new Tag94A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0010);
        }
      }

      [Description("Scope Of Operation")]
      public Tag94A Tag94A_ScopeOfOperation_A
      {
        get
        {
          return this.ScopeOfOperation_A_94A;
        }
      }

      [Description("Open Indicator")]
      public Tag17O OpenIndicator_A_17O
      {
        get
        {
          return new Tag17O((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0012);
        }
      }

      [Description("Open Indicator")]
      public Tag17O Tag17O_OpenIndicator_A
      {
        get
        {
          return this.OpenIndicator_A_17O;
        }
      }

      [Description("Final Close Indicator")]
      public Tag17F FinalCloseIndicator_A_17F
      {
        get
        {
          return new Tag17F((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0014);
        }
      }

      [Description("Final Close Indicator")]
      public Tag17F Tag17F_FinalCloseIndicator_A
      {
        get
        {
          return this.FinalCloseIndicator_A_17F;
        }
      }

      [Description("Net Settlement Indicator")]
      public Tag17N NetSettlementIndicator_A_17N
      {
        get
        {
          return new Tag17N((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0016);
        }
      }

      [Description("Net Settlement Indicator")]
      public Tag17N Tag17N_NetSettlementIndicator_A
      {
        get
        {
          return this.NetSettlementIndicator_A_17N;
        }
      }

      [Description("Fund")]
      public Tag83A Fund_A_83A
      {
        get
        {
          return new Tag83A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0019);
        }
      }

      [Description("Fund")]
      public Tag83A Tag83A_Fund_A
      {
        get
        {
          return this.Fund_A_83A;
        }
      }

      [Description("Fund")]
      public Tag83D Fund_A_83D
      {
        get
        {
          return new Tag83D((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U001C);
        }
      }

      [Description("Fund")]
      public Tag83D Tag83D_Fund_A
      {
        get
        {
          return this.Fund_A_83D;
        }
      }

      [Description("Fund")]
      public Tag83J Fund_A_83J
      {
        get
        {
          return new Tag83J((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U001F);
        }
      }

      [Description("Fund")]
      public Tag83J Tag83J_Fund_A
      {
        get
        {
          return this.Fund_A_83J;
        }
      }

      [Description("Fund Manager")]
      public Tag82A FundManager_A_82A
      {
        get
        {
          return new Tag82A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0081);
        }
      }

      [Description("Fund Manager")]
      public Tag82A Tag82A_FundManager_A
      {
        get
        {
          return this.FundManager_A_82A;
        }
      }

      [Description("Fund Manager")]
      public Tag82D FundManager_A_82D
      {
        get
        {
          return new Tag82D((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0084);
        }
      }

      [Description("Fund Manager")]
      public Tag82D Tag82D_FundManager_A
      {
        get
        {
          return this.FundManager_A_82D;
        }
      }

      [Description("Fund Manager")]
      public Tag82J FundManager_A_82J
      {
        get
        {
          return new Tag82J((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0088);
        }
      }

      [Description("Fund Manager")]
      public Tag82J Tag82J_FundManager_A
      {
        get
        {
          return this.FundManager_A_82J;
        }
      }

      [Description("Executing Broker")]
      public Tag87A ExecutingBroker_A_87A
      {
        get
        {
          return new Tag87A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U008B);
        }
      }

      [Description("Executing Broker")]
      public Tag87A Tag87A_ExecutingBroker_A
      {
        get
        {
          return this.ExecutingBroker_A_87A;
        }
      }

      [Description("Executing Broker")]
      public Tag87D ExecutingBroker_A_87D
      {
        get
        {
          return new Tag87D((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U008E);
        }
      }

      [Description("Executing Broker")]
      public Tag87D Tag87D_ExecutingBroker_A
      {
        get
        {
          return this.ExecutingBroker_A_87D;
        }
      }

      [Description("Executing Broker")]
      public Tag87J ExecutingBroker_A_87J
      {
        get
        {
          return new Tag87J((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0091);
        }
      }

      [Description("Executing Broker")]
      public Tag87J Tag87J_ExecutingBroker_A
      {
        get
        {
          return this.ExecutingBroker_A_87J;
        }
      }

      internal SequenceAClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }
    }

    public class SequenceBClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT304.U0093;
        }
      }

      [Description("New Sequence")]
      public Tag15B NewSequence_B_15B
      {
        get
        {
          return new Tag15B((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0094);
        }
      }

      [Description("New Sequence")]
      public Tag15B Tag15B_NewSequence_B
      {
        get
        {
          return this.NewSequence_B_15B;
        }
      }

      [Description("Trade Date")]
      public Tag30T TradeDate_B_30T
      {
        get
        {
          return new Tag30T((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0096);
        }
      }

      [Description("Trade Date")]
      public Tag30T Tag30T_TradeDate_B
      {
        get
        {
          return this.TradeDate_B_30T;
        }
      }

      [Description("Value Date")]
      public Tag30V ValueDate_B_30V
      {
        get
        {
          return new Tag30V((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0098);
        }
      }

      [Description("Value Date")]
      public Tag30V Tag30V_ValueDate_B
      {
        get
        {
          return this.ValueDate_B_30V;
        }
      }

      [Description("Exchange Rate")]
      public Tag36 ExchangeRate_B_36
      {
        get
        {
          return new Tag36((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U009A);
        }
      }

      [Description("Exchange Rate")]
      public Tag36 Tag36_ExchangeRate_B
      {
        get
        {
          return this.ExchangeRate_B_36;
        }
      }

      [Description("Amount Bought")]
      public MT304.SequenceBClass.SequenceB1Class SequenceB1
      {
        get
        {
          return new MT304.SequenceBClass.SequenceB1Class((SwiftElement) this, 0, false);
        }
      }

      [Description("Amount Sold")]
      public MT304.SequenceBClass.SequenceB2Class SequenceB2
      {
        get
        {
          return new MT304.SequenceBClass.SequenceB2Class((SwiftElement) this, 0, false);
        }
      }

      internal SequenceBClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public class SequenceB1Class : SwiftTagSequence
      {
        internal override SwiftDefinitionElement Definition
        {
          get
          {
            return (SwiftDefinitionElement) MT304.U009C;
          }
        }

        [Description("Currency, Amount Bought")]
        public Tag32B CurrencyAmountBought_B1_32B
        {
          get
          {
            return new Tag32B((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U009D);
          }
        }

        [Description("Currency, Amount Bought")]
        public Tag32B Tag32B_CurrencyAmountBought_B1
        {
          get
          {
            return this.CurrencyAmountBought_B1_32B;
          }
        }

        [Description("Delivery Agent")]
        public Tag53A DeliveryAgent_B1_53A
        {
          get
          {
            return new Tag53A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0002U0002);
          }
        }

        [Description("Delivery Agent")]
        public Tag53A Tag53A_DeliveryAgent_B1
        {
          get
          {
            return this.DeliveryAgent_B1_53A;
          }
        }

        [Description("Delivery Agent")]
        public Tag53D DeliveryAgent_B1_53D
        {
          get
          {
            return new Tag53D((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0005U0002);
          }
        }

        [Description("Delivery Agent")]
        public Tag53D Tag53D_DeliveryAgent_B1
        {
          get
          {
            return this.DeliveryAgent_B1_53D;
          }
        }

        [Description("Delivery Agent")]
        public Tag53J DeliveryAgent_B1_53J
        {
          get
          {
            return new Tag53J((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0008U0002);
          }
        }

        [Description("Delivery Agent")]
        public Tag53J Tag53J_DeliveryAgent_B1
        {
          get
          {
            return this.DeliveryAgent_B1_53J;
          }
        }

        [Description("Intermediary")]
        public Tag56A Intermediary_B1_56A
        {
          get
          {
            return new Tag56A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U000FU0002);
          }
        }

        [Description("Intermediary")]
        public Tag56A Tag56A_Intermediary_B1
        {
          get
          {
            return this.Intermediary_B1_56A;
          }
        }

        [Description("Intermediary")]
        public Tag56D Intermediary_B1_56D
        {
          get
          {
            return new Tag56D((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0012U0002);
          }
        }

        [Description("Intermediary")]
        public Tag56D Tag56D_Intermediary_B1
        {
          get
          {
            return this.Intermediary_B1_56D;
          }
        }

        [Description("Intermediary")]
        public Tag56J Intermediary_B1_56J
        {
          get
          {
            return new Tag56J((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0015U0002);
          }
        }

        [Description("Intermediary")]
        public Tag56J Tag56J_Intermediary_B1
        {
          get
          {
            return this.Intermediary_B1_56J;
          }
        }

        [Description("Receiving Agent")]
        public Tag57A ReceivingAgent_B1_57A
        {
          get
          {
            return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0017U0002);
          }
        }

        [Description("Receiving Agent")]
        public Tag57A Tag57A_ReceivingAgent_B1
        {
          get
          {
            return this.ReceivingAgent_B1_57A;
          }
        }

        [Description("Receiving Agent")]
        public Tag57D ReceivingAgent_B1_57D
        {
          get
          {
            return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U001AU0002);
          }
        }

        [Description("Receiving Agent")]
        public Tag57D Tag57D_ReceivingAgent_B1
        {
          get
          {
            return this.ReceivingAgent_B1_57D;
          }
        }

        [Description("Receiving Agent")]
        public Tag57J ReceivingAgent_B1_57J
        {
          get
          {
            return new Tag57J((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U001DU0002);
          }
        }

        [Description("Receiving Agent")]
        public Tag57J Tag57J_ReceivingAgent_B1
        {
          get
          {
            return this.ReceivingAgent_B1_57J;
          }
        }

        internal SequenceB1Class(SwiftElement parent, int index, bool createTags)
          : base(parent, index, createTags)
        {
        }
      }

      public class SequenceB2Class : SwiftTagSequence
      {
        internal override SwiftDefinitionElement Definition
        {
          get
          {
            return (SwiftDefinitionElement) MT304.U001EU0002;
          }
        }

        [Description("Currency, Amount Sold")]
        public Tag33B CurrencyAmountSold_B2_33B
        {
          get
          {
            return new Tag33B((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U001FU0002);
          }
        }

        [Description("Currency, Amount Sold")]
        public Tag33B Tag33B_CurrencyAmountSold_B2
        {
          get
          {
            return this.CurrencyAmountSold_B2_33B;
          }
        }

        [Description("Delivery Agent")]
        public Tag53A DeliveryAgent_B2_53A
        {
          get
          {
            return new Tag53A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0082U0002);
          }
        }

        [Description("Delivery Agent")]
        public Tag53A Tag53A_DeliveryAgent_B2
        {
          get
          {
            return this.DeliveryAgent_B2_53A;
          }
        }

        [Description("Delivery Agent")]
        public Tag53D DeliveryAgent_B2_53D
        {
          get
          {
            return new Tag53D((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0086U0002);
          }
        }

        [Description("Delivery Agent")]
        public Tag53D Tag53D_DeliveryAgent_B2
        {
          get
          {
            return this.DeliveryAgent_B2_53D;
          }
        }

        [Description("Delivery Agent")]
        public Tag53J DeliveryAgent_B2_53J
        {
          get
          {
            return new Tag53J((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0089U0002);
          }
        }

        [Description("Delivery Agent")]
        public Tag53J Tag53J_DeliveryAgent_B2
        {
          get
          {
            return this.DeliveryAgent_B2_53J;
          }
        }

        [Description("Intermediary")]
        public Tag56A Intermediary_B2_56A
        {
          get
          {
            return new Tag56A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U008BU0002);
          }
        }

        [Description("Intermediary")]
        public Tag56A Tag56A_Intermediary_B2
        {
          get
          {
            return this.Intermediary_B2_56A;
          }
        }

        [Description("Intermediary")]
        public Tag56D Intermediary_B2_56D
        {
          get
          {
            return new Tag56D((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U008EU0002);
          }
        }

        [Description("Intermediary")]
        public Tag56D Tag56D_Intermediary_B2
        {
          get
          {
            return this.Intermediary_B2_56D;
          }
        }

        [Description("Intermediary")]
        public Tag56J Intermediary_B2_56J
        {
          get
          {
            return new Tag56J((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0091U0002);
          }
        }

        [Description("Intermediary")]
        public Tag56J Tag56J_Intermediary_B2
        {
          get
          {
            return this.Intermediary_B2_56J;
          }
        }

        [Description("Receiving Agent")]
        public Tag57A ReceivingAgent_B2_57A
        {
          get
          {
            return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0093U0002);
          }
        }

        [Description("Receiving Agent")]
        public Tag57A Tag57A_ReceivingAgent_B2
        {
          get
          {
            return this.ReceivingAgent_B2_57A;
          }
        }

        [Description("Receiving Agent")]
        public Tag57D ReceivingAgent_B2_57D
        {
          get
          {
            return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0096U0002);
          }
        }

        [Description("Receiving Agent")]
        public Tag57D Tag57D_ReceivingAgent_B2
        {
          get
          {
            return this.ReceivingAgent_B2_57D;
          }
        }

        [Description("Receiving Agent")]
        public Tag57J ReceivingAgent_B2_57J
        {
          get
          {
            return new Tag57J((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0099U0002);
          }
        }

        [Description("Receiving Agent")]
        public Tag57J Tag57J_ReceivingAgent_B2
        {
          get
          {
            return this.ReceivingAgent_B2_57J;
          }
        }

        [Description("Beneficiary Institution")]
        public Tag58A BeneficiaryInstitution_B2_58A
        {
          get
          {
            return new Tag58A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U009BU0002);
          }
        }

        [Description("Beneficiary Institution")]
        public Tag58A Tag58A_BeneficiaryInstitution_B2
        {
          get
          {
            return this.BeneficiaryInstitution_B2_58A;
          }
        }

        [Description("Beneficiary Institution")]
        public Tag58D BeneficiaryInstitution_B2_58D
        {
          get
          {
            return new Tag58D((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U009EU0002);
          }
        }

        [Description("Beneficiary Institution")]
        public Tag58D Tag58D_BeneficiaryInstitution_B2
        {
          get
          {
            return this.BeneficiaryInstitution_B2_58D;
          }
        }

        [Description("Beneficiary Institution")]
        public Tag58J BeneficiaryInstitution_B2_58J
        {
          get
          {
            return new Tag58J((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0002U0003);
          }
        }

        [Description("Beneficiary Institution")]
        public Tag58J Tag58J_BeneficiaryInstitution_B2
        {
          get
          {
            return this.BeneficiaryInstitution_B2_58J;
          }
        }

        internal SequenceB2Class(SwiftElement parent, int index, bool createTags)
          : base(parent, index, createTags)
        {
        }
      }
    }

    public class SequenceCClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT304.U0004U0003;
        }
      }

      [Description("New Sequence")]
      public Tag15C NewSequence_C_15C
      {
        get
        {
          return new Tag15C((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0005U0003);
        }
      }

      [Description("New Sequence")]
      public Tag15C Tag15C_NewSequence_C
      {
        get
        {
          return this.NewSequence_C_15C;
        }
      }

      [Description("Reference to the Associated Trade")]
      public Tag21A ReferenceToTheAssociatedTrade_C_21A
      {
        get
        {
          return new Tag21A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0007U0003);
        }
      }

      [Description("Reference to the Associated Trade")]
      public Tag21A Tag21A_ReferenceToTheAssociatedTrade_C
      {
        get
        {
          return this.ReferenceToTheAssociatedTrade_C_21A;
        }
      }

      [Description("Executing Broker’s Reference")]
      public Tag21G ExecutingBrokersReference_C_21G
      {
        get
        {
          return new Tag21G((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U000EU0003);
        }
      }

      [Description("Executing Broker’s Reference")]
      public Tag21G Tag21G_ExecutingBrokersReference_C
      {
        get
        {
          return this.ExecutingBrokersReference_C_21G;
        }
      }

      [Description("Contact Information")]
      public Tag29A ContactInformation_C_29A
      {
        get
        {
          return new Tag29A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0010U0003);
        }
      }

      [Description("Contact Information")]
      public Tag29A Tag29A_ContactInformation_C
      {
        get
        {
          return this.ContactInformation_C_29A;
        }
      }

      [Description("Sender To Receiver Information")]
      public Tag72 SenderToReceiverInformation_C_72
      {
        get
        {
          return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0011U0003);
        }
      }

      [Description("Sender To Receiver Information")]
      public Tag72 Tag72_SenderToReceiverInformation_C
      {
        get
        {
          return this.SenderToReceiverInformation_C_72;
        }
      }

      internal SequenceCClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }
    }

    public class SequenceDClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT304.U0018U0003;
        }
      }

      [Description("New Sequence")]
      public Tag15D NewSequence_D_15D
      {
        get
        {
          return new Tag15D((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0019U0003);
        }
      }

      [Description("New Sequence")]
      public Tag15D Tag15D_NewSequence_D
      {
        get
        {
          return this.NewSequence_D_15D;
        }
      }

      [Description("Reference to Previous Deals")]
      public Tag21P[] ReferenceToPreviousDeals_D_21P
      {
        get
        {
          int index = -1;
          List<Tag21P> list = new List<Tag21P>();
          int count;
          do
          {
            ++index;
            Tag21P tag21P = new Tag21P((SwiftElement) this, index, (SwiftDefinitionElement) MT304.U001BU0003);
            count = this.ListTags((SwiftElement) tag21P).Count;
            if (count > 0)
              list.Add(tag21P);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Reference to Previous Deals")]
      public Tag21P[] Tag21P_ReferenceToPreviousDeals_D
      {
        get
        {
          return this.ReferenceToPreviousDeals_D_21P;
        }
      }

      [Description("Gain (Loss) Indicator")]
      public Tag17G GainLossIndicator_D_17G
      {
        get
        {
          return new Tag17G((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U001DU0003);
        }
      }

      [Description("Gain (Loss) Indicator")]
      public Tag17G Tag17G_GainLossIndicator_D
      {
        get
        {
          return this.GainLossIndicator_D_17G;
        }
      }

      [Description("Currency, Amount")]
      public Tag32G CurrencyAmount_D_32G
      {
        get
        {
          return new Tag32G((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U001FU0003);
        }
      }

      [Description("Currency, Amount")]
      public Tag32G Tag32G_CurrencyAmount_D
      {
        get
        {
          return this.CurrencyAmount_D_32G;
        }
      }

      internal SequenceDClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public Tag21P AddReferenceToPreviousDeals_D_21P()
      {
        return new Tag21P((SwiftElement) this, this.ReferenceToPreviousDeals_D_21P.Length, (SwiftDefinitionElement) MT304.U001BU0003)
        {
          Value = string.Empty
        };
      }

      public void RemoveReferenceToPreviousDeals_D_21P(Tag21P tag)
      {
        this.RemoveTag(tag.GetTag());
      }
    }

    public class SequenceEClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT304.U0081U0003;
        }
      }

      [Description("New Sequence")]
      public Tag15E NewSequence_E_15E
      {
        get
        {
          return new Tag15E((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0082U0003);
        }
      }

      [Description("New Sequence")]
      public Tag15E Tag15E_NewSequence_E
      {
        get
        {
          return this.NewSequence_E_15E;
        }
      }

      [Description("Gain (Loss) Indicator")]
      public Tag17G GainLossIndicator_E_17G
      {
        get
        {
          return new Tag17G((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0084U0003);
        }
      }

      [Description("Gain (Loss) Indicator")]
      public Tag17G Tag17G_GainLossIndicator_E
      {
        get
        {
          return this.GainLossIndicator_E_17G;
        }
      }

      [Description("Currency, Amount")]
      public Tag32G CurrencyAmount_E_32G
      {
        get
        {
          return new Tag32G((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0087U0003);
        }
      }

      [Description("Currency, Amount")]
      public Tag32G Tag32G_CurrencyAmount_E
      {
        get
        {
          return this.CurrencyAmount_E_32G;
        }
      }

      [Description("Delivery Agent")]
      public Tag53A DeliveryAgent_E_53A
      {
        get
        {
          return new Tag53A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U008BU0003);
        }
      }

      [Description("Delivery Agent")]
      public Tag53A Tag53A_DeliveryAgent_E
      {
        get
        {
          return this.DeliveryAgent_E_53A;
        }
      }

      [Description("Delivery Agent")]
      public Tag53D DeliveryAgent_E_53D
      {
        get
        {
          return new Tag53D((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U008EU0003);
        }
      }

      [Description("Delivery Agent")]
      public Tag53D Tag53D_DeliveryAgent_E
      {
        get
        {
          return this.DeliveryAgent_E_53D;
        }
      }

      [Description("Delivery Agent")]
      public Tag53J DeliveryAgent_E_53J
      {
        get
        {
          return new Tag53J((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0091U0003);
        }
      }

      [Description("Delivery Agent")]
      public Tag53J Tag53J_DeliveryAgent_E
      {
        get
        {
          return this.DeliveryAgent_E_53J;
        }
      }

      [Description("Intermediary")]
      public Tag56A Intermediary_E_56A
      {
        get
        {
          return new Tag56A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0093U0003);
        }
      }

      [Description("Intermediary")]
      public Tag56A Tag56A_Intermediary_E
      {
        get
        {
          return this.Intermediary_E_56A;
        }
      }

      [Description("Intermediary")]
      public Tag56D Intermediary_E_56D
      {
        get
        {
          return new Tag56D((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0096U0003);
        }
      }

      [Description("Intermediary")]
      public Tag56D Tag56D_Intermediary_E
      {
        get
        {
          return this.Intermediary_E_56D;
        }
      }

      [Description("Intermediary")]
      public Tag56J Intermediary_E_56J
      {
        get
        {
          return new Tag56J((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0099U0003);
        }
      }

      [Description("Intermediary")]
      public Tag56J Tag56J_Intermediary_E
      {
        get
        {
          return this.Intermediary_E_56J;
        }
      }

      [Description("Receiving Agent")]
      public Tag57A ReceivingAgent_E_57A
      {
        get
        {
          return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U009BU0003);
        }
      }

      [Description("Receiving Agent")]
      public Tag57A Tag57A_ReceivingAgent_E
      {
        get
        {
          return this.ReceivingAgent_E_57A;
        }
      }

      [Description("Receiving Agent")]
      public Tag57D ReceivingAgent_E_57D
      {
        get
        {
          return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U009EU0003);
        }
      }

      [Description("Receiving Agent")]
      public Tag57D Tag57D_ReceivingAgent_E
      {
        get
        {
          return this.ReceivingAgent_E_57D;
        }
      }

      [Description("Receiving Agent")]
      public Tag57J ReceivingAgent_E_57J
      {
        get
        {
          return new Tag57J((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0002U0004);
        }
      }

      [Description("Receiving Agent")]
      public Tag57J Tag57J_ReceivingAgent_E
      {
        get
        {
          return this.ReceivingAgent_E_57J;
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58A BeneficiaryInstitution_E_58A
      {
        get
        {
          return new Tag58A((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0004U0004);
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58A Tag58A_BeneficiaryInstitution_E
      {
        get
        {
          return this.BeneficiaryInstitution_E_58A;
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58D BeneficiaryInstitution_E_58D
      {
        get
        {
          return new Tag58D((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U0007U0004);
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58D Tag58D_BeneficiaryInstitution_E
      {
        get
        {
          return this.BeneficiaryInstitution_E_58D;
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58J BeneficiaryInstitution_E_58J
      {
        get
        {
          return new Tag58J((SwiftElement) this, 0, (SwiftDefinitionElement) MT304.U000FU0004);
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58J Tag58J_BeneficiaryInstitution_E
      {
        get
        {
          return this.BeneficiaryInstitution_E_58J;
        }
      }

      internal SequenceEClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }
    }
  }
}
